﻿/*
 * XCoder v3.4.2011.0316
 * 作者：nnhy/X
 * 时间：2011-04-04 11:43:06
 * 版权：版权所有 (C) 新生命开发团队 2010
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using XCode;
using XCode.DataAccessLayer;

namespace NXCMS.Shop
{
	/// <summary>
	/// 商品
	/// </summary>
	[Serializable]
	[DataObject]
	[Description("商品")]
	[BindTable("Goods", Description = "商品", ConnName = "Shop", DbType = DatabaseType.SqlServer)]
	public partial class Goods
	{
		#region 属性
		private Int32 _ID;
		/// <summary>
		/// 编号
		/// </summary>
		[Description("编号")]
		[DataObjectField(true, true, false, 10)]
		[BindColumn(1, "ID", "编号", "", "int", 10, 0, false)]
		public Int32 ID
		{
			get { return _ID; }
			set { if (OnPropertyChange("ID", value)) _ID = value; }
		}

		private Int32 _SiteID;
		/// <summary>
		/// 站点编号
		/// </summary>
		[Description("站点编号")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(2, "SiteID", "站点编号", "", "int", 10, 0, false)]
		public Int32 SiteID
		{
			get { return _SiteID; }
			set { if (OnPropertyChange("SiteID", value)) _SiteID = value; }
		}

		private Int32 _CatalogID;
		/// <summary>
		/// 类别编号
		/// </summary>
		[Description("类别编号")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(3, "CatalogID", "类别编号", "", "int", 10, 0, false)]
		public Int32 CatalogID
		{
			get { return _CatalogID; }
			set { if (OnPropertyChange("CatalogID", value)) _CatalogID = value; }
		}

		private String _CatalogInnerCode;
		/// <summary>
		/// 类别内部代码
		/// </summary>
		[Description("类别内部代码")]
		[DataObjectField(false, false, false, 100)]
		[BindColumn(4, "CatalogInnerCode", "类别内部代码", "", "nvarchar(100)", 0, 0, true)]
		public String CatalogInnerCode
		{
			get { return _CatalogInnerCode; }
			set { if (OnPropertyChange("CatalogInnerCode", value)) _CatalogInnerCode = value; }
		}

		private Int32 _BrandID;
		/// <summary>
		/// 品牌编号
		/// </summary>
		[Description("品牌编号")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(5, "BrandID", "品牌编号", "", "int", 10, 0, false)]
		public Int32 BrandID
		{
			get { return _BrandID; }
			set { if (OnPropertyChange("BrandID", value)) _BrandID = value; }
		}

		private String _BranchInnerCode;
		/// <summary>
		/// 分支内部代码
		/// </summary>
		[Description("分支内部代码")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(6, "BranchInnerCode", "分支内部代码", "", "nvarchar(100)", 0, 0, true)]
		public String BranchInnerCode
		{
			get { return _BranchInnerCode; }
			set { if (OnPropertyChange("BranchInnerCode", value)) _BranchInnerCode = value; }
		}

		private Boolean _Type;
		/// <summary>
		/// 类型
		/// </summary>
		[Description("类型")]
		[DataObjectField(false, false, false, 1)]
		[BindColumn(7, "Type", "类型", "", "bit", 0, 0, false)]
		public Boolean Type
		{
			get { return _Type; }
			set { if (OnPropertyChange("Type", value)) _Type = value; }
		}

		private String _SN;
		/// <summary>
		/// 
		/// </summary>
		[Description("")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(8, "SN", "", "", "nvarchar(50)", 0, 0, true)]
		public String SN
		{
			get { return _SN; }
			set { if (OnPropertyChange("SN", value)) _SN = value; }
		}

		private String _Name;
		/// <summary>
		/// 名称
		/// </summary>
		[Description("名称")]
		[DataObjectField(false, false, false, 100)]
		[BindColumn(9, "Name", "名称", "", "nvarchar(100)", 0, 0, true)]
		public String Name
		{
			get { return _Name; }
			set { if (OnPropertyChange("Name", value)) _Name = value; }
		}

		private String _Alias;
		/// <summary>
		/// 别名
		/// </summary>
		[Description("别名")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(10, "Alias", "别名", "", "nvarchar(100)", 0, 0, true)]
		public String Alias
		{
			get { return _Alias; }
			set { if (OnPropertyChange("Alias", value)) _Alias = value; }
		}

		private String _BarCode;
		/// <summary>
		/// 条形码
		/// </summary>
		[Description("条形码")]
		[DataObjectField(false, false, true, 128)]
		[BindColumn(11, "BarCode", "条形码", "", "nvarchar(128)", 0, 0, true)]
		public String BarCode
		{
			get { return _BarCode; }
			set { if (OnPropertyChange("BarCode", value)) _BarCode = value; }
		}

		private Int32 _WorkFlowID;
		/// <summary>
		/// 流程编号
		/// </summary>
		[Description("流程编号")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(12, "WorkFlowID", "流程编号", "", "int", 10, 0, false)]
		public Int32 WorkFlowID
		{
			get { return _WorkFlowID; }
			set { if (OnPropertyChange("WorkFlowID", value)) _WorkFlowID = value; }
		}

		private String _Status;
		/// <summary>
		/// 状态
		/// </summary>
		[Description("状态")]
		[DataObjectField(false, false, true, 20)]
		[BindColumn(13, "Status", "状态", "", "nvarchar(20)", 0, 0, true)]
		public String Status
		{
			get { return _Status; }
			set { if (OnPropertyChange("Status", value)) _Status = value; }
		}

		private String _Factory;
		/// <summary>
		/// 工厂
		/// </summary>
		[Description("工厂")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(14, "Factory", "工厂", "", "nvarchar(100)", 0, 0, true)]
		public String Factory
		{
			get { return _Factory; }
			set { if (OnPropertyChange("Factory", value)) _Factory = value; }
		}

		private Int32 _OrderFlag;
		/// <summary>
		/// 订单标记
		/// </summary>
		[Description("订单标记")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(15, "OrderFlag", "订单标记", "", "int", 10, 0, false)]
		public Int32 OrderFlag
		{
			get { return _OrderFlag; }
			set { if (OnPropertyChange("OrderFlag", value)) _OrderFlag = value; }
		}

		private Single _MarketPrice;
		/// <summary>
		/// 市场价格
		/// </summary>
		[Description("市场价格")]
		[DataObjectField(false, false, true, 24)]
		[BindColumn(16, "MarketPrice", "市场价格", "", "real", 24, 0, false)]
		public Single MarketPrice
		{
			get { return _MarketPrice; }
			set { if (OnPropertyChange("MarketPrice", value)) _MarketPrice = value; }
		}

		private Single _Price;
		/// <summary>
		/// 价格
		/// </summary>
		[Description("价格")]
		[DataObjectField(false, false, true, 24)]
		[BindColumn(17, "Price", "价格", "", "real", 24, 0, false)]
		public Single Price
		{
			get { return _Price; }
			set { if (OnPropertyChange("Price", value)) _Price = value; }
		}

		private Single _Discount;
		/// <summary>
		/// 
		/// </summary>
		[Description("")]
		[DataObjectField(false, false, true, 24)]
		[BindColumn(18, "Discount", "", "", "real", 24, 0, false)]
		public Single Discount
		{
			get { return _Discount; }
			set { if (OnPropertyChange("Discount", value)) _Discount = value; }
		}

		private Single _OfferPrice;
		/// <summary>
		/// 
		/// </summary>
		[Description("")]
		[DataObjectField(false, false, true, 24)]
		[BindColumn(19, "OfferPrice", "", "", "real", 24, 0, false)]
		public Single OfferPrice
		{
			get { return _OfferPrice; }
			set { if (OnPropertyChange("OfferPrice", value)) _OfferPrice = value; }
		}

		private Single _MemberPrice;
		/// <summary>
		/// 成员价格
		/// </summary>
		[Description("成员价格")]
		[DataObjectField(false, false, true, 24)]
		[BindColumn(20, "MemberPrice", "成员价格", "", "real", 24, 0, false)]
		public Single MemberPrice
		{
			get { return _MemberPrice; }
			set { if (OnPropertyChange("MemberPrice", value)) _MemberPrice = value; }
		}

		private Single _VIPPrice;
		/// <summary>
		/// VIP价格
		/// </summary>
		[Description("VIP价格")]
		[DataObjectField(false, false, true, 24)]
		[BindColumn(21, "VIPPrice", "VIP价格", "", "real", 24, 0, false)]
		public Single VIPPrice
		{
			get { return _VIPPrice; }
			set { if (OnPropertyChange("VIPPrice", value)) _VIPPrice = value; }
		}

		private DateTime _EffectDate;
		/// <summary>
		/// 效果日期
		/// </summary>
		[Description("效果日期")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(22, "EffectDate", "效果日期", "", "datetime2", 7, 0, false)]
		public DateTime EffectDate
		{
			get { return _EffectDate; }
			set { if (OnPropertyChange("EffectDate", value)) _EffectDate = value; }
		}

		private Int32 _Store;
		/// <summary>
		/// 存储
		/// </summary>
		[Description("存储")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(23, "Store", "存储", "", "int", 10, 0, false)]
		public Int32 Store
		{
			get { return _Store; }
			set { if (OnPropertyChange("Store", value)) _Store = value; }
		}

		private String _Standard;
		/// <summary>
		/// 标准
		/// </summary>
		[Description("标准")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(24, "Standard", "标准", "", "nvarchar(100)", 0, 0, true)]
		public String Standard
		{
			get { return _Standard; }
			set { if (OnPropertyChange("Standard", value)) _Standard = value; }
		}

		private String _Unit;
		/// <summary>
		/// 单位
		/// </summary>
		[Description("单位")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(25, "Unit", "单位", "", "nvarchar(10)", 0, 0, true)]
		public String Unit
		{
			get { return _Unit; }
			set { if (OnPropertyChange("Unit", value)) _Unit = value; }
		}

		private Int32 _Score;
		/// <summary>
		/// 分数
		/// </summary>
		[Description("分数")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(26, "Score", "分数", "", "int", 10, 0, false)]
		public Int32 Score
		{
			get { return _Score; }
			set { if (OnPropertyChange("Score", value)) _Score = value; }
		}

		private Int32 _CommentCount;
		/// <summary>
		/// 注释数量
		/// </summary>
		[Description("注释数量")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(27, "CommentCount", "注释数量", "", "int", 10, 0, false)]
		public Int32 CommentCount
		{
			get { return _CommentCount; }
			set { if (OnPropertyChange("CommentCount", value)) _CommentCount = value; }
		}

		private Int32 _SaleCount;
		/// <summary>
		/// 售出数量
		/// </summary>
		[Description("售出数量")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(28, "SaleCount", "售出数量", "", "int", 10, 0, false)]
		public Int32 SaleCount
		{
			get { return _SaleCount; }
			set { if (OnPropertyChange("SaleCount", value)) _SaleCount = value; }
		}

		private Int32 _HitCount;
		/// <summary>
		/// 点击数量
		/// </summary>
		[Description("点击数量")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(29, "HitCount", "点击数量", "", "int", 10, 0, false)]
		public Int32 HitCount
		{
			get { return _HitCount; }
			set { if (OnPropertyChange("HitCount", value)) _HitCount = value; }
		}

		private String _Image0;
		/// <summary>
		/// 图片0
		/// </summary>
		[Description("图片0")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(30, "Image0", "图片0", "", "nvarchar(200)", 0, 0, true)]
		public String Image0
		{
			get { return _Image0; }
			set { if (OnPropertyChange("Image0", value)) _Image0 = value; }
		}

		private String _Image1;
		/// <summary>
		/// 图片1
		/// </summary>
		[Description("图片1")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(31, "Image1", "图片1", "", "nvarchar(200)", 0, 0, true)]
		public String Image1
		{
			get { return _Image1; }
			set { if (OnPropertyChange("Image1", value)) _Image1 = value; }
		}

		private String _Image2;
		/// <summary>
		/// 图片2
		/// </summary>
		[Description("图片2")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(32, "Image2", "图片2", "", "nvarchar(200)", 0, 0, true)]
		public String Image2
		{
			get { return _Image2; }
			set { if (OnPropertyChange("Image2", value)) _Image2 = value; }
		}

		private String _Image3;
		/// <summary>
		/// 图片3
		/// </summary>
		[Description("图片3")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(33, "Image3", "图片3", "", "nvarchar(200)", 0, 0, true)]
		public String Image3
		{
			get { return _Image3; }
			set { if (OnPropertyChange("Image3", value)) _Image3 = value; }
		}

		private String _RelativeGoods;
		/// <summary>
		/// 关系
		/// </summary>
		[Description("关系")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(34, "RelativeGoods", "关系", "", "nvarchar(100)", 0, 0, true)]
		public String RelativeGoods
		{
			get { return _RelativeGoods; }
			set { if (OnPropertyChange("RelativeGoods", value)) _RelativeGoods = value; }
		}

		private String _Keyword;
		/// <summary>
		/// 关键字
		/// </summary>
		[Description("关键字")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(35, "Keyword", "关键字", "", "nvarchar(100)", 0, 0, true)]
		public String Keyword
		{
			get { return _Keyword; }
			set { if (OnPropertyChange("Keyword", value)) _Keyword = value; }
		}

		private DateTime _TopDate;
		/// <summary>
		/// 顶部日期
		/// </summary>
		[Description("顶部日期")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(36, "TopDate", "顶部日期", "", "datetime2", 7, 0, false)]
		public DateTime TopDate
		{
			get { return _TopDate; }
			set { if (OnPropertyChange("TopDate", value)) _TopDate = value; }
		}

		private Boolean _TopFlag;
		/// <summary>
		/// 顶部标记
		/// </summary>
		[Description("顶部标记")]
		[DataObjectField(false, false, false, 1)]
		[BindColumn(37, "TopFlag", "顶部标记", "", "bit", 0, 0, false)]
		public Boolean TopFlag
		{
			get { return _TopFlag; }
			set { if (OnPropertyChange("TopFlag", value)) _TopFlag = value; }
		}

		private String _Content;
		/// <summary>
		/// 内容
		/// </summary>
		[Description("内容")]
		[DataObjectField(false, false, true, 1073741823)]
		[BindColumn(38, "Content", "内容", "", "ntext", 0, 0, true)]
		public String Content
		{
			get { return _Content; }
			set { if (OnPropertyChange("Content", value)) _Content = value; }
		}

		private String _Summary;
		/// <summary>
		/// 
		/// </summary>
		[Description("")]
		[DataObjectField(false, false, true, 2000)]
		[BindColumn(39, "Summary", "", "", "nvarchar(2000)", 0, 0, true)]
		public String Summary
		{
			get { return _Summary; }
			set { if (OnPropertyChange("Summary", value)) _Summary = value; }
		}

		private String _RedirectURL;
		/// <summary>
		/// 重定向网址
		/// </summary>
		[Description("重定向网址")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(40, "RedirectURL", "重定向网址", "", "nvarchar(200)", 0, 0, true)]
		public String RedirectURL
		{
			get { return _RedirectURL; }
			set { if (OnPropertyChange("RedirectURL", value)) _RedirectURL = value; }
		}

		private String _Attribute;
		/// <summary>
		/// 属性
		/// </summary>
		[Description("属性")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(41, "Attribute", "属性", "", "nvarchar(100)", 0, 0, true)]
		public String Attribute
		{
			get { return _Attribute; }
			set { if (OnPropertyChange("Attribute", value)) _Attribute = value; }
		}

		private String _RecommendGoods;
		/// <summary>
		/// 推荐商品
		/// </summary>
		[Description("推荐商品")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(42, "RecommendGoods", "推荐商品", "", "nvarchar(100)", 0, 0, true)]
		public String RecommendGoods
		{
			get { return _RecommendGoods; }
			set { if (OnPropertyChange("RecommendGoods", value)) _RecommendGoods = value; }
		}

		private Int32 _StickTime;
		/// <summary>
		/// 
		/// </summary>
		[Description("")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(43, "StickTime", "", "", "int", 10, 0, false)]
		public Int32 StickTime
		{
			get { return _StickTime; }
			set { if (OnPropertyChange("StickTime", value)) _StickTime = value; }
		}

		private DateTime _PublishDate;
		/// <summary>
		/// 发布日期
		/// </summary>
		[Description("发布日期")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(44, "PublishDate", "发布日期", "", "datetime2", 7, 0, false)]
		public DateTime PublishDate
		{
			get { return _PublishDate; }
			set { if (OnPropertyChange("PublishDate", value)) _PublishDate = value; }
		}

		private DateTime _DownlineDate;
		/// <summary>
		/// 下线日期
		/// </summary>
		[Description("下线日期")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(45, "DownlineDate", "下线日期", "", "datetime2", 7, 0, false)]
		public DateTime DownlineDate
		{
			get { return _DownlineDate; }
			set { if (OnPropertyChange("DownlineDate", value)) _DownlineDate = value; }
		}

		private String _Memo;
		/// <summary>
		/// 注释
		/// </summary>
		[Description("注释")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(46, "Memo", "注释", "", "nvarchar(200)", 0, 0, true)]
		public String Memo
		{
			get { return _Memo; }
			set { if (OnPropertyChange("Memo", value)) _Memo = value; }
		}

		private String _Prop1;
		/// <summary>
		/// 属性1
		/// </summary>
		[Description("属性1")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(47, "Prop1", "属性1", "", "nvarchar(200)", 0, 0, true)]
		public String Prop1
		{
			get { return _Prop1; }
			set { if (OnPropertyChange("Prop1", value)) _Prop1 = value; }
		}

		private String _Prop2;
		/// <summary>
		/// 属性2
		/// </summary>
		[Description("属性2")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(48, "Prop2", "属性2", "", "nvarchar(200)", 0, 0, true)]
		public String Prop2
		{
			get { return _Prop2; }
			set { if (OnPropertyChange("Prop2", value)) _Prop2 = value; }
		}

		private String _Prop3;
		/// <summary>
		/// 属性3
		/// </summary>
		[Description("属性3")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(49, "Prop3", "属性3", "", "nvarchar(200)", 0, 0, true)]
		public String Prop3
		{
			get { return _Prop3; }
			set { if (OnPropertyChange("Prop3", value)) _Prop3 = value; }
		}

		private String _Prop4;
		/// <summary>
		/// 属性4
		/// </summary>
		[Description("属性4")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(50, "Prop4", "属性4", "", "nvarchar(200)", 0, 0, true)]
		public String Prop4
		{
			get { return _Prop4; }
			set { if (OnPropertyChange("Prop4", value)) _Prop4 = value; }
		}

		private String _AddUser;
		/// <summary>
		/// 添加用户
		/// </summary>
		[Description("添加用户")]
		[DataObjectField(false, false, false, 200)]
		[BindColumn(51, "AddUser", "添加用户", "", "nvarchar(200)", 0, 0, true)]
		public String AddUser
		{
			get { return _AddUser; }
			set { if (OnPropertyChange("AddUser", value)) _AddUser = value; }
		}

		private DateTime _AddTime;
		/// <summary>
		/// 添加时间
		/// </summary>
		[Description("添加时间")]
		[DataObjectField(false, false, false, 7)]
		[BindColumn(52, "AddTime", "添加时间", "", "datetime2", 7, 0, false)]
		public DateTime AddTime
		{
			get { return _AddTime; }
			set { if (OnPropertyChange("AddTime", value)) _AddTime = value; }
		}

		private String _ModifyUser;
		/// <summary>
		/// 修改用户
		/// </summary>
		[Description("修改用户")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(53, "ModifyUser", "修改用户", "", "nvarchar(200)", 0, 0, true)]
		public String ModifyUser
		{
			get { return _ModifyUser; }
			set { if (OnPropertyChange("ModifyUser", value)) _ModifyUser = value; }
		}

		private DateTime _ModifyTime;
		/// <summary>
		/// 修改时间
		/// </summary>
		[Description("修改时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(54, "ModifyTime", "修改时间", "", "datetime2", 7, 0, false)]
		public DateTime ModifyTime
		{
			get { return _ModifyTime; }
			set { if (OnPropertyChange("ModifyTime", value)) _ModifyTime = value; }
		}

		private String _BackupNo;
		/// <summary>
		/// 备份编号
		/// </summary>
		[Description("备份编号")]
		[DataObjectField(false, false, true, 15)]
		[BindColumn(55, "BackupNo", "备份编号", "", "nvarchar(15)", 0, 0, true)]
		public String BackupNo
		{
			get { return _BackupNo; }
			set { if (OnPropertyChange("BackupNo", value)) _BackupNo = value; }
		}

		private String _BackupOperator;
		/// <summary>
		/// 备份操作者
		/// </summary>
		[Description("备份操作者")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(56, "BackupOperator", "备份操作者", "", "nvarchar(200)", 0, 0, true)]
		public String BackupOperator
		{
			get { return _BackupOperator; }
			set { if (OnPropertyChange("BackupOperator", value)) _BackupOperator = value; }
		}

		private DateTime _BackupTime;
		/// <summary>
		/// 备份时间
		/// </summary>
		[Description("备份时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(57, "BackupTime", "备份时间", "", "datetime2", 7, 0, false)]
		public DateTime BackupTime
		{
			get { return _BackupTime; }
			set { if (OnPropertyChange("BackupTime", value)) _BackupTime = value; }
		}

		private String _BackupMemo;
		/// <summary>
		/// 备份注释
		/// </summary>
		[Description("备份注释")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(58, "BackupMemo", "备份注释", "", "nvarchar(50)", 0, 0, true)]
		public String BackupMemo
		{
			get { return _BackupMemo; }
			set { if (OnPropertyChange("BackupMemo", value)) _BackupMemo = value; }
		}
		#endregion

		#region 获取/设置 字段值
		/// <summary>
		/// 获取/设置 字段值。
		/// 一个索引，基类使用反射实现。
		/// 派生实体类可重写该索引，以避免反射带来的性能损耗
		/// </summary>
		/// <param name="name">字段名</param>
		/// <returns></returns>
		public override Object this[String name]
		{
			get
			{
				switch (name)
				{
					case "ID" : return _ID;
					case "SiteID" : return _SiteID;
					case "CatalogID" : return _CatalogID;
					case "CatalogInnerCode" : return _CatalogInnerCode;
					case "BrandID" : return _BrandID;
					case "BranchInnerCode" : return _BranchInnerCode;
					case "Type" : return _Type;
					case "SN" : return _SN;
					case "Name" : return _Name;
					case "Alias" : return _Alias;
					case "BarCode" : return _BarCode;
					case "WorkFlowID" : return _WorkFlowID;
					case "Status" : return _Status;
					case "Factory" : return _Factory;
					case "OrderFlag" : return _OrderFlag;
					case "MarketPrice" : return _MarketPrice;
					case "Price" : return _Price;
					case "Discount" : return _Discount;
					case "OfferPrice" : return _OfferPrice;
					case "MemberPrice" : return _MemberPrice;
					case "VIPPrice" : return _VIPPrice;
					case "EffectDate" : return _EffectDate;
					case "Store" : return _Store;
					case "Standard" : return _Standard;
					case "Unit" : return _Unit;
					case "Score" : return _Score;
					case "CommentCount" : return _CommentCount;
					case "SaleCount" : return _SaleCount;
					case "HitCount" : return _HitCount;
					case "Image0" : return _Image0;
					case "Image1" : return _Image1;
					case "Image2" : return _Image2;
					case "Image3" : return _Image3;
					case "RelativeGoods" : return _RelativeGoods;
					case "Keyword" : return _Keyword;
					case "TopDate" : return _TopDate;
					case "TopFlag" : return _TopFlag;
					case "Content" : return _Content;
					case "Summary" : return _Summary;
					case "RedirectURL" : return _RedirectURL;
					case "Attribute" : return _Attribute;
					case "RecommendGoods" : return _RecommendGoods;
					case "StickTime" : return _StickTime;
					case "PublishDate" : return _PublishDate;
					case "DownlineDate" : return _DownlineDate;
					case "Memo" : return _Memo;
					case "Prop1" : return _Prop1;
					case "Prop2" : return _Prop2;
					case "Prop3" : return _Prop3;
					case "Prop4" : return _Prop4;
					case "AddUser" : return _AddUser;
					case "AddTime" : return _AddTime;
					case "ModifyUser" : return _ModifyUser;
					case "ModifyTime" : return _ModifyTime;
					case "BackupNo" : return _BackupNo;
					case "BackupOperator" : return _BackupOperator;
					case "BackupTime" : return _BackupTime;
					case "BackupMemo" : return _BackupMemo;
					default: return base[name];
				}
			}
			set
			{
				switch (name)
				{
					case "ID" : _ID = Convert.ToInt32(value); break;
					case "SiteID" : _SiteID = Convert.ToInt32(value); break;
					case "CatalogID" : _CatalogID = Convert.ToInt32(value); break;
					case "CatalogInnerCode" : _CatalogInnerCode = Convert.ToString(value); break;
					case "BrandID" : _BrandID = Convert.ToInt32(value); break;
					case "BranchInnerCode" : _BranchInnerCode = Convert.ToString(value); break;
					case "Type" : _Type = Convert.ToBoolean(value); break;
					case "SN" : _SN = Convert.ToString(value); break;
					case "Name" : _Name = Convert.ToString(value); break;
					case "Alias" : _Alias = Convert.ToString(value); break;
					case "BarCode" : _BarCode = Convert.ToString(value); break;
					case "WorkFlowID" : _WorkFlowID = Convert.ToInt32(value); break;
					case "Status" : _Status = Convert.ToString(value); break;
					case "Factory" : _Factory = Convert.ToString(value); break;
					case "OrderFlag" : _OrderFlag = Convert.ToInt32(value); break;
					case "MarketPrice" : _MarketPrice = Convert.ToSingle(value); break;
					case "Price" : _Price = Convert.ToSingle(value); break;
					case "Discount" : _Discount = Convert.ToSingle(value); break;
					case "OfferPrice" : _OfferPrice = Convert.ToSingle(value); break;
					case "MemberPrice" : _MemberPrice = Convert.ToSingle(value); break;
					case "VIPPrice" : _VIPPrice = Convert.ToSingle(value); break;
					case "EffectDate" : _EffectDate = Convert.ToDateTime(value); break;
					case "Store" : _Store = Convert.ToInt32(value); break;
					case "Standard" : _Standard = Convert.ToString(value); break;
					case "Unit" : _Unit = Convert.ToString(value); break;
					case "Score" : _Score = Convert.ToInt32(value); break;
					case "CommentCount" : _CommentCount = Convert.ToInt32(value); break;
					case "SaleCount" : _SaleCount = Convert.ToInt32(value); break;
					case "HitCount" : _HitCount = Convert.ToInt32(value); break;
					case "Image0" : _Image0 = Convert.ToString(value); break;
					case "Image1" : _Image1 = Convert.ToString(value); break;
					case "Image2" : _Image2 = Convert.ToString(value); break;
					case "Image3" : _Image3 = Convert.ToString(value); break;
					case "RelativeGoods" : _RelativeGoods = Convert.ToString(value); break;
					case "Keyword" : _Keyword = Convert.ToString(value); break;
					case "TopDate" : _TopDate = Convert.ToDateTime(value); break;
					case "TopFlag" : _TopFlag = Convert.ToBoolean(value); break;
					case "Content" : _Content = Convert.ToString(value); break;
					case "Summary" : _Summary = Convert.ToString(value); break;
					case "RedirectURL" : _RedirectURL = Convert.ToString(value); break;
					case "Attribute" : _Attribute = Convert.ToString(value); break;
					case "RecommendGoods" : _RecommendGoods = Convert.ToString(value); break;
					case "StickTime" : _StickTime = Convert.ToInt32(value); break;
					case "PublishDate" : _PublishDate = Convert.ToDateTime(value); break;
					case "DownlineDate" : _DownlineDate = Convert.ToDateTime(value); break;
					case "Memo" : _Memo = Convert.ToString(value); break;
					case "Prop1" : _Prop1 = Convert.ToString(value); break;
					case "Prop2" : _Prop2 = Convert.ToString(value); break;
					case "Prop3" : _Prop3 = Convert.ToString(value); break;
					case "Prop4" : _Prop4 = Convert.ToString(value); break;
					case "AddUser" : _AddUser = Convert.ToString(value); break;
					case "AddTime" : _AddTime = Convert.ToDateTime(value); break;
					case "ModifyUser" : _ModifyUser = Convert.ToString(value); break;
					case "ModifyTime" : _ModifyTime = Convert.ToDateTime(value); break;
					case "BackupNo" : _BackupNo = Convert.ToString(value); break;
					case "BackupOperator" : _BackupOperator = Convert.ToString(value); break;
					case "BackupTime" : _BackupTime = Convert.ToDateTime(value); break;
					case "BackupMemo" : _BackupMemo = Convert.ToString(value); break;
					default: base[name] = value; break;
				}
			}
		}
		#endregion

		#region 字段名
		/// <summary>
		/// 取得商品字段名的快捷方式
		/// </summary>
		public class _
		{
			///<summary>
			/// 编号
			///</summary>
			public const String ID = "ID";

			///<summary>
			/// 站点编号
			///</summary>
			public const String SiteID = "SiteID";

			///<summary>
			/// 类别编号
			///</summary>
			public const String CatalogID = "CatalogID";

			///<summary>
			/// 类别内部代码
			///</summary>
			public const String CatalogInnerCode = "CatalogInnerCode";

			///<summary>
			/// 品牌编号
			///</summary>
			public const String BrandID = "BrandID";

			///<summary>
			/// 分支内部代码
			///</summary>
			public const String BranchInnerCode = "BranchInnerCode";

			///<summary>
			/// 类型
			///</summary>
			public const String Type = "Type";

			///<summary>
			/// 
			///</summary>
			public const String SN = "SN";

			///<summary>
			/// 名称
			///</summary>
			public const String Name = "Name";

			///<summary>
			/// 别名
			///</summary>
			public const String Alias = "Alias";

			///<summary>
			/// 条形码
			///</summary>
			public const String BarCode = "BarCode";

			///<summary>
			/// 流程编号
			///</summary>
			public const String WorkFlowID = "WorkFlowID";

			///<summary>
			/// 状态
			///</summary>
			public const String Status = "Status";

			///<summary>
			/// 工厂
			///</summary>
			public const String Factory = "Factory";

			///<summary>
			/// 订单标记
			///</summary>
			public const String OrderFlag = "OrderFlag";

			///<summary>
			/// 市场价格
			///</summary>
			public const String MarketPrice = "MarketPrice";

			///<summary>
			/// 价格
			///</summary>
			public const String Price = "Price";

			///<summary>
			/// 
			///</summary>
			public const String Discount = "Discount";

			///<summary>
			/// 
			///</summary>
			public const String OfferPrice = "OfferPrice";

			///<summary>
			/// 成员价格
			///</summary>
			public const String MemberPrice = "MemberPrice";

			///<summary>
			/// VIP价格
			///</summary>
			public const String VIPPrice = "VIPPrice";

			///<summary>
			/// 效果日期
			///</summary>
			public const String EffectDate = "EffectDate";

			///<summary>
			/// 存储
			///</summary>
			public const String Store = "Store";

			///<summary>
			/// 标准
			///</summary>
			public const String Standard = "Standard";

			///<summary>
			/// 单位
			///</summary>
			public const String Unit = "Unit";

			///<summary>
			/// 分数
			///</summary>
			public const String Score = "Score";

			///<summary>
			/// 注释数量
			///</summary>
			public const String CommentCount = "CommentCount";

			///<summary>
			/// 售出数量
			///</summary>
			public const String SaleCount = "SaleCount";

			///<summary>
			/// 点击数量
			///</summary>
			public const String HitCount = "HitCount";

			///<summary>
			/// 图片0
			///</summary>
			public const String Image0 = "Image0";

			///<summary>
			/// 图片1
			///</summary>
			public const String Image1 = "Image1";

			///<summary>
			/// 图片2
			///</summary>
			public const String Image2 = "Image2";

			///<summary>
			/// 图片3
			///</summary>
			public const String Image3 = "Image3";

			///<summary>
			/// 关系
			///</summary>
			public const String RelativeGoods = "RelativeGoods";

			///<summary>
			/// 关键字
			///</summary>
			public const String Keyword = "Keyword";

			///<summary>
			/// 顶部日期
			///</summary>
			public const String TopDate = "TopDate";

			///<summary>
			/// 顶部标记
			///</summary>
			public const String TopFlag = "TopFlag";

			///<summary>
			/// 内容
			///</summary>
			public const String Content = "Content";

			///<summary>
			/// 
			///</summary>
			public const String Summary = "Summary";

			///<summary>
			/// 重定向网址
			///</summary>
			public const String RedirectURL = "RedirectURL";

			///<summary>
			/// 属性
			///</summary>
			public const String Attribute = "Attribute";

			///<summary>
			/// 推荐商品
			///</summary>
			public const String RecommendGoods = "RecommendGoods";

			///<summary>
			/// 
			///</summary>
			public const String StickTime = "StickTime";

			///<summary>
			/// 发布日期
			///</summary>
			public const String PublishDate = "PublishDate";

			///<summary>
			/// 下线日期
			///</summary>
			public const String DownlineDate = "DownlineDate";

			///<summary>
			/// 注释
			///</summary>
			public const String Memo = "Memo";

			///<summary>
			/// 属性1
			///</summary>
			public const String Prop1 = "Prop1";

			///<summary>
			/// 属性2
			///</summary>
			public const String Prop2 = "Prop2";

			///<summary>
			/// 属性3
			///</summary>
			public const String Prop3 = "Prop3";

			///<summary>
			/// 属性4
			///</summary>
			public const String Prop4 = "Prop4";

			///<summary>
			/// 添加用户
			///</summary>
			public const String AddUser = "AddUser";

			///<summary>
			/// 添加时间
			///</summary>
			public const String AddTime = "AddTime";

			///<summary>
			/// 修改用户
			///</summary>
			public const String ModifyUser = "ModifyUser";

			///<summary>
			/// 修改时间
			///</summary>
			public const String ModifyTime = "ModifyTime";

			///<summary>
			/// 备份编号
			///</summary>
			public const String BackupNo = "BackupNo";

			///<summary>
			/// 备份操作者
			///</summary>
			public const String BackupOperator = "BackupOperator";

			///<summary>
			/// 备份时间
			///</summary>
			public const String BackupTime = "BackupTime";

			///<summary>
			/// 备份注释
			///</summary>
			public const String BackupMemo = "BackupMemo";
		}
		#endregion
	}
}